package com.itheima.springcovid;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SpringBootApplication
public class SpringCovidApplication {
       @Bean
    public RestTemplate restTemplate(){
           return new RestTemplate();
    }
    public static void main(String[] args) {
        SpringApplication.run(SpringCovidApplication.class, args);
    }
    @RequestMapping("/findAll")
            public Map findAll(){
        Map map=new HashMap<>();
        List<Map>list=new ArrayList();
        return map;
    }

}
